package com.example.teamtribe.main.club.vote;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.bumptech.glide.Glide;
import com.example.teamtribe.R;
import com.example.teamtribe.base.BaseActivity;
import com.example.teamtribe.database.User;
import com.example.teamtribe.utils.Utility;

import butterknife.BindView;
import butterknife.ButterKnife;

public class VoteActivity extends BaseActivity {

    @BindView(R.id.tv_title)
    TextView tvTitle;
    @BindView(R.id.iv_head)
    ImageView ivHead;
    @BindView(R.id.tv_nickname)
    TextView tvNickname;
    @BindView(R.id.tv_info)
    TextView tvInfo;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_vote);
        ButterKnife.bind(this);
        tvTitle.setText("投票");
        User user = Utility.getUser();
        Glide.with(this).load(Utility.getUri(user.getPortrait())).into(ivHead);
        tvNickname.setText(user.getNickname());
        tvInfo.setText("发起投票");
    }
}
